<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <div v-text="msg1"></div>
    <div v-html="msg2"></div>
    <div v-pre>{{msg3}}</div>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    /* 
      v-text
        填充纯文本
      v-html
        填充HTML片段
      v-pre
        填充原始信息,跳过编译过程
    */
    const vm = new Vue({
      el: "#app",
      data: {
        msg1: "haode",
        msg2: "<h1>再见</h1>",
        msg3: "没有出现内容"
      },

    });

  </script>
</body>

</html>
